//
//  UIImage+DZCategory.h
//  DZFoundation
//
//  Created by Darren on 15/5/28.
//  Copyright (c) 2015年 Darren Zheng. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (DZCategory)



// 压缩图片大小：改变其分辨率
- (UIImage *)resizedImageWithWidth:(CGFloat)width
                            height:(CGFloat)height
                            opaque:(BOOL)bOpaque
                             scale:(CGFloat)fScale;

//将图片剪切成圆形
+(UIImage*)circleImage:(UIImage*) image withParam:(CGFloat) inset;

+ (UIImage *)fixOrientation:(UIImage *)aImage;

//根据颜色返回一个1*1像素的图像
+(UIImage *)imageWithColor:(UIColor *)color;

//返回一个特定尺寸的图像
+(UIImage *)imageWithColor:(UIColor *)color imageSize:(CGSize)imageSize;
@end
